This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
8.3
Rating
0
Installs
Backend Development
Category
Exceptional skill for hook development in Claude Code plugins. The description clearly specifies triggers (keywords, events, use cases), making it highly discoverable. SKILL.md is comprehensive yet well-structured, covering hook types, configuration formats, all event types, security practices, debugging, and implementation workflow with extensive code examples. References to pattern files, migration guides, example scripts, and utility scripts in other files are appropriate and add depth without cluttering the main document. The skill addresses a complex, platform-specific domain (event-driven automation in Claude Code) that would otherwise require significant token expenditure for a CLI agent to navigate correctly. Minor improvement areas: could slightly clarify the two-format distinction earlier, and the novelty is moderate since hooks are a standard plugin concept (though the prompt-based hook API and Claude-specific implementation details are specialized). Overall, this is a production-ready, well-documented skill that meaningfully reduces complexity for hook development tasks.
Loading SKILL.md…

Skill Author